package com.wowjoy.dp.sds.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@ApiModel(value = "字典项", description = "全局字典项")
@Document
@Data
@ToString
@Accessors(chain = true)
public class Dictionary {

    @ApiModelProperty(value = "主键ID", name = "id")
    @Id
    private String id;

    @ApiModelProperty(value = "父节点ID", name = "parentId")
    private String parentId;

    @ApiModelProperty(value = "字典项编码", name = "code")
    private String code;

    @ApiModelProperty(value = "字典项名称内容", name = "context")
    private String context;

    @ApiModelProperty(value = "字典项内容说明", name = "description")
    private String description;

    @ApiModelProperty(value = "是否删除", name = "deleted")
    private boolean deleted;
}
